home *** CD-ROM | disk | FTP | other *** search
/ The Atari Compendium / The Atari Compendium (Toad Computers) (1994).iso / files / prgtools / gnustuff / tos / othergnu / gp2st.zoo / gnuplot / makefile.st next >
Encoding:
Makefile  |  1991-06-04  |  6.6 KB  |  224 lines

  1. #
  2. # GNUPLOT Makefile
  3. #
  4.  
  5. #
  6. # Atari ST native GCC system
  7. # Jens Tingleff June -91
  8. # Added GNU readline. I don't know/care why it was taken out..
  9.  
  10. CC = gcc
  11. GEN_SYM = sym-ld
  12. GNULIB = d:\gnu\gcc\lib
  13.  
  14. # directory where to install executables on 'make install'
  15. DEST=/usr/local/bin
  16. # directory for installing man page on 'make man_install'
  17. MANDEST=/usr/man/manl
  18. # where to install help file gnuplot.gih
  19. #HELPDEST=/usr/local/lib/gnuplot.gih
  20. HELPDEST=docs/gnuplot.gih
  21. # Where to send email about bugs and comments (locally)
  22. EMAIL=\"pixar\!bug-gnuplot@sun.com\"
  23.  
  24. # -DVFORK if you have vfork()
  25. # -DBCOPY if your memcpy() is called bcopy() (a Berkeleyism, right?)
  26. # -DBZERO if you need to use bzero() (another BSD feature) instead of memset() 
  27. # -DNOCOPY if you don't have a memcpy() by any name
  28. # -DGAMMA if you've got gamma(3)
  29. # -fswitch if you are compiling on a Sun3 (or even -f68881)
  30. #    (but -fswitch is buggy on some systems, so watch out)
  31. # -O if you trust your compiler's optimizer
  32. # -DGNU_READLINE if you have the GNU readline lib.
  33. CFLAGS = -g -O -DGNU_READLINE #-gx #-O
  34.  
  35. # -lplot if you have -DUNIXPLOT
  36. # -lsuntool -lsunwindow -lpixrect  if you have -DSUN
  37. # -lgl_s if IRIS4D
  38. # -lreadline -ltermcap  for GNU readline.
  39. LIBS = -lpml -lgem -lreadline -ltermcap
  40. LIB881S = -lgem -lreadline -ltermcap -l881
  41.  
  42. # -D<terminal> in TERMFLAGS iff you wish to support <terminal>
  43. # see other terminal defines in term.h
  44. # -DFIG         Fig graphics language (requires object.h from TransFig)
  45. # -DIRIS4D      IRIS4D series computer
  46. # -DSUN         Sun Microsystems Workstation
  47. # -DUNIXPLOT    unixplot
  48. # -DATARIST    For Atari ST screen.
  49. #   all set in term.h
  50.  
  51. TERMFLAGS =  -Iterm 
  52.  
  53. OBJ1S = command.o eval.o graphics.o help.o internal.o misc.o parse.o\
  54.     plot.o scanner.o setshow.o standard.o util.o  
  55.  
  56. OBJS = $(OBJ1S) term.o 
  57.  
  58. DIRS = term demo bugtest docs docs/latextut translate
  59. CSOURCE1 = command.c setshow.c 
  60. CSOURCE2 = help.c graphics.c internal.c 
  61. CSOURCE3 = misc.c eval.c parse.c plot.c scanner.c standard.c 
  62. CSOURCE4 = term.c util.c version.c
  63. CSOURCE5 = term/aed.trm term/dxy.trm term/eps60.trm term/epson.trm \
  64.     term/font5x7.trm term/hp26.trm term/hp2648.trm term/hpgl.trm \
  65.     term/hpljet.trm term/iris4d.trm term/latex.trm term/sun.trm
  66. CSOURCE6 = term/post.trm term/pc.trm term/qms.trm term/regis.trm \
  67.     term/tek.trm term/unixpc.trm term/unixplot.trm term/v384.trm \
  68.     term/atarist.trm
  69.  
  70. CSOURCE7 = term/imPcodes.h term/imagen.trm term/object.h term/fig.trm \
  71.     term/latex.trm term/eepic.trm term/x11.trm gnuplot_x11.c
  72. # not C code, but still needed
  73. ETC = Copyright README README.gnutex makefile.unx makefile.vms  \
  74.     README.x11 makefile.x11 \
  75.     makefile.3b1 plot.h help.h setshow.h term.h lasergnu \
  76.      demo/1.dat demo/2.dat demo/3.dat demo/controls.demo \
  77.     demo/simple.demo demo/polar.demo demo/electron.demo \
  78.     bugtest/README bugtest/printf.c bugtest/scanf.c \
  79.     bugtest/mscbug.c term/README \
  80.     linkopt.vms buildvms.com
  81. # PC-specific files
  82. PC = corgraph.asm corplot.c header.mac hrcgraph.asm lineproc.mac \
  83.     linkopt.msc linkopt.tc makefile.msc makefile.tc pcgraph.asm 
  84. # Documentation and help files
  85. DOCS1 = docs/Makefile docs/README docs/checkdoc.c docs/doc2gih.c \
  86.     docs/doc2hlp.c docs/doc2hlp.com docs/doc2ms.c docs/doc2tex.c \
  87.     docs/gnuplot.1 docs/lasergnu.1 \
  88.     docs/titlepage.ms docs/titlepage.tex
  89. DOCS2 = docs/gnuplot.doc
  90. DOCS3 = docs/latextut/Makefile docs/latextut/eg1.plt \
  91.     docs/latextut/eg2.plt docs/latextut/eg3.dat docs/latextut/eg3.plt \
  92.     docs/latextut/eg4.plt docs/latextut/eg5.plt docs/latextut/eg6.plt \
  93.     docs/latextut/header.tex docs/latextut/tutorial.tex
  94. # gnutex->gnuplot translator
  95. TSOURCE1 = translate/Makefile translate/README translate/command.c \
  96.     translate/eval.c translate/gnut2p.1 translate/internal.c \
  97.     translate/misc.c translate/parse.c translate/plot.c
  98. TSOURCE2 = \
  99.     translate/plot.h translate/scanner.c translate/standard.c \
  100.     translate/test1 translate/test2 translate/util.c
  101.  
  102. #all:    gnuplot doc
  103. all: gnuplot
  104.  
  105.  
  106. # Don't wait for make to compile term.o
  107. unsafe-gnuplot: $(OBJ1S) version.o
  108.     $(CC) $(CFLAGS) -o gnuplot.prg $(OBJS) version.o $(LIBS)
  109.     xstrip gnuplot.prg
  110.  
  111. c-unsafe-gnuplot: $(OBJ1S) version.o
  112.     $(CC) $(CFLAGS) -o gnuplot.prg $(OBJS) version.o $(LIB881S)
  113.     xstrip gnuplot.prg
  114.  
  115. g-unsafe-gnuplot: $(OBJ1S) version.o
  116.     $(CC) $(CFLAGS) -o gnuplot.prg $(OBJS) version.o $(LIBS)
  117.     $(GEN_SYM) -o gnuplot.sym $(GNULIB)/crt0.o $(OBJS) version.o \
  118.     $(LIBS) -lgnu
  119.  
  120. gnuplot: $(OBJS) version.o
  121.     $(CC) $(CFLAGS) -o gnuplot.prg $(OBJS) version.o $(LIBS)
  122.     $(GEN_SYM) -o gnuplot.sym $(GNULIB)/crt0.o $(OBJS) version.o \
  123.     $(LIBS) -lgnu
  124.  
  125. doc:
  126.     ( cd docs; make gnuplot.gih )
  127.  
  128. translate:
  129.     (cd translate; make)
  130.  
  131. install: gnuplot doc man_install
  132.     cp gnuplot lasergnu $(DEST)
  133.     strip $(DEST)/gnuplot
  134.     (cd docs; make install-unix HELPDEST=$(HELPDEST))
  135.  
  136. man_install: docs/gnuplot.1 docs/lasergnu.1
  137.     cp docs/gnuplot.1 docs/lasergnu.1 $(MANDEST)
  138.  
  139. term.o: term.h $(CSOURCE4) $(CSOURCE5) $(CSOURCE6) $(CSOURCE7)
  140.     $(CC) $(CFLAGS) $(TERMFLAGS) -c term.c
  141.  
  142. version.o:
  143.     $(CC) $(CFLAGS) -DCONTACT=$(EMAIL) -c version.c
  144.  
  145. $(OBJS): plot.h
  146.  
  147. command.o: command.c
  148.     $(CC) $(CFLAGS) -c command.c -DHELPFILE=\"$(HELPDEST)\"
  149.  
  150. command.o help.o misc.o: help.h
  151.  
  152. command.o graphics.o misc.o plot.o setshow.o: setshow.h
  153.  
  154. SOURCES=plot.h help.h setshow.h $(CSOURCE1) $(CSOURCE2) $(CSOURCE3) \
  155.     $(CSOURCE4) $(CSOURCE5) $(CSOURCE6) $(CSOURCE7)
  156.  
  157. lint:
  158.     lint -hx $(CSOURCE1) $(CSOURCE2) $(CSOURCE3) $(CSOURCE4)
  159.  
  160. clean:
  161.     rm -f *.o *~ term/*~ *.sym
  162.     (cd docs; make clean)
  163.     (cd docs/latextut; make clean)
  164.     (cd translate; make clean)
  165.  
  166. spotless:
  167.     rm -f *.o *~ term/*~ TAGS gnuplot
  168.     (cd docs; make clean)
  169.     (cd docs/latextut; make spotless)
  170.     (cd translate; make spotless)
  171.  
  172. shar: gnuplot.sh00 gnuplot.sh01 gnuplot.sh02 gnuplot.sh03 gnuplot.sh04 \
  173.     gnuplot.sh05 gnuplot.sh06 gnuplot.sh07 gnuplot.sh08 \
  174.     gnuplot.sh09 gnuplot.sh10 gnuplot.sh11 gnuplot.sh12 \
  175.     gnuplot.sh13 gnuplot.sh14
  176.  
  177. gnuplot.sh00:
  178.     echo '#!/bin/sh' > gnuplot.sh00
  179.     echo '# This is a shell file to make directories' >> gnuplot.sh00
  180.     echo mkdir $(DIRS) >> gnuplot.sh00
  181.  
  182. gnuplot.sh01: $(ETC)
  183.     shar $(ETC) > gnuplot.sh01
  184.  
  185. gnuplot.sh02: $(DOCS1)
  186.     shar $(DOCS1) > gnuplot.sh02
  187.  
  188. gnuplot.sh03: $(DOCS2)
  189.     shar $(DOCS2) > gnuplot.sh03
  190.  
  191. gnuplot.sh04: $(DOCS3)
  192.     shar $(DOCS3) > gnuplot.sh04
  193.  
  194. gnuplot.sh05: $(CSOURCE1)
  195.     shar $(CSOURCE1) > gnuplot.sh05
  196.  
  197. gnuplot.sh06: $(CSOURCE2)
  198.     shar $(CSOURCE2) > gnuplot.sh06
  199.  
  200. gnuplot.sh07: $(CSOURCE3)
  201.     shar $(CSOURCE3) > gnuplot.sh07
  202.  
  203. gnuplot.sh08: $(CSOURCE4)
  204.     shar $(CSOURCE4) > gnuplot.sh08
  205.  
  206. gnuplot.sh09: $(CSOURCE5)
  207.     shar $(CSOURCE5) > gnuplot.sh09
  208.  
  209. gnuplot.sh10: $(CSOURCE6)
  210.     shar $(CSOURCE6) > gnuplot.sh10
  211.  
  212. gnuplot.sh11: $(CSOURCE7)
  213.     shar $(CSOURCE7) > gnuplot.sh11
  214.  
  215. gnuplot.sh12: $(PC)
  216.     shar $(PC) > gnuplot.sh12
  217.  
  218. gnuplot.sh13: $(TSOURCE1)
  219.     shar $(TSOURCE1) > gnuplot.sh13
  220.  
  221. gnuplot.sh14: $(TSOURCE2)
  222.     shar $(TSOURCE2) > gnuplot.sh14
  223.  
  224.